package id.co.gomobile.assessment

import java.util.Date;

class Assignment {
	
    static hasMany = [items: AssignmentItem]

    User user
	Test test
	
	Date startTime
	Date expectedEndTime
	Date endTime
	
	// cached result
	double total
	
	Date dateCreated
	Date lastUpdated
	
    static constraints = {
		startTime(nullable: true)
		expectedEndTime(nullable: true)
		endTime(nullable: true)
    }

}
